package main

import (
	"fmt"
	lib "gitee.com/williamguang/verify/lib"
	"gitee.com/williamguang/verify/routers"
)

func main() {
	//engine := routers.Route()
	address := fmt.Sprintf(":%v", lib.Config.Get("port"))
		//server := &http.Server{
		//	Addr:    address,
		//	Handler: engine,
		//}
		//go server.ListenAndServe()
	lib.Logger.Infof("Listening and serving HTTP on %s\n", address)
	routers.Route().Run(fmt.Sprintf(":%v", lib.Config.Get("port")))

}
